package com.att.app;

import java.io.File;
import java.util.UUID;

import android.app.Activity;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;

public class AttActivity extends Activity {
	private static File file = new File("/tmp/device.info");
	private static String model;
	private static String brand ;
	private static String uuid ;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        initInfo();
        Intent intent = new Intent();
        intent.setAction("att.intent.device");
        startService(intent);
        finish();
    }
    
	public void initInfo() {
		model = Build.MODEL;
		brand = Build.BRAND;
		uuid = UUID.randomUUID().toString();
	}
	
//	public void writeInfo() throws IOException {
//		file.createNewFile();
//		FileWriter writer = new FileWriter(file);
//		BufferedWriter bw = new BufferedWriter(writer);
//		bw.write(brand);
//		bw.newLine();
//		bw.write(model);
//		bw.newLine();
//		bw.write(uuid.toString());
//		bw.newLine();
//		bw.flush();
//		bw.close();
//		writer.close();
//	}
}